package com.mai.entity;

import java.util.Date;
import java.util.List;

/**
* <p>Title: OrderMaster</p> 
* <p>Description: 订单表</p> 
* @author  唐振耀 
* @date  2019年5月31日
*/
public class OrderMaster {
	private Integer order_id;        //订单表id
	private String buyer_name;       //买家名字
	private String buyer_phone;      //买家电话
	private String buyer_address;    //买家地址
	private Double order_amount;     //订单总金额
	private int order_status;        //订单状态，默认0新下单
	private int pay_status;          //支付状态，默认0未支付
	private Date create_time;        //创建时间
	private Date update__time;       //修改时间
	private Integer user_id;
	private List<OrderDetail> od;
	
	
	public List<OrderDetail> getOd() {
		return od;
	}
	public void setOd(List<OrderDetail> od) {
		this.od = od;
	}
	public Integer getUser_id() {
		return user_id;
	}
	public void setUser_id(Integer user_id) {
		this.user_id = user_id;
	}
	public Integer getOrder_id() {
		return order_id;
	}
	public void setOrder_id(Integer order_id) {
		this.order_id = order_id;
	}
	public String getBuyer_name() {
		return buyer_name;
	}
	public void setBuyer_name(String buyer_name) {
		this.buyer_name = buyer_name;
	}
	public String getBuyer_phone() {
		return buyer_phone;
	}
	public void setBuyer_phone(String buyer_phone) {
		this.buyer_phone = buyer_phone;
	}
	public String getBuyer_address() {
		return buyer_address;
	}
	public void setBuyer_address(String buyer_address) {
		this.buyer_address = buyer_address;
	}
	public Double getOrder_amount() {
		return order_amount;
	}
	public void setOrder_amount(Double order_amount) {
		this.order_amount = order_amount;
	}
	public int getOrder_status() {
		return order_status;
	}
	public void setOrder_status(int order_status) {
		this.order_status = order_status;
	}
	public int getPay_status() {
		return pay_status;
	}
	public void setPay_status(int pay_status) {
		this.pay_status = pay_status;
	}
	public Date getCreate_time() {
		return create_time;
	}
	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}
	public Date getUpdate__time() {
		return update__time;
	}
	public void setUpdate__time(Date update__time) {
		this.update__time = update__time;
	}
	@Override
	public String toString() {
		return "OrderMaster [order_id=" + order_id + ", buyer_name=" + buyer_name + ", buyer_phone=" + buyer_phone
				+ ", buyer_address=" + buyer_address + ", order_amount=" + order_amount + ", order_status="
				+ order_status + ", pay_status=" + pay_status + ", create_time=" + create_time + ", update__time="
				+ update__time + ", user_id=" + user_id + ", od=" + od + "]";
	}
	

}
